package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 护理记录内容表
 * </p>
 *
 * @author zqb
 * @date 2024-08-02 10:21:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_care_content")
public class BCareContent extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 护理记录内容
     */
    @TableField(value = "care_content", condition = LIKE)
    @Schema(description = "护理记录内容")
    private String careContent;
    /**
     * 记录人id
     */
    @TableField(value = "record_by", condition = LIKE)
    @Schema(description = "记录人id")
    private String recordBy;
    /**
     * 记录人姓名
     */
    @TableField(value = "record_name", condition = LIKE)
    @Schema(description = "记录人姓名")
    private String recordName;
    /**
     * 记录时间
     */
    @TableField(value = "record_time", condition = EQUAL)
    @Schema(description = "记录时间")
    private LocalDateTime recordTime;

    /**
     * 病人住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "病人住院号")
    private String hospitalNumber;
    /**
     * 类型 1 护理记录 2 病程记录
     */
    @TableField(value = "type", condition = EQUAL)
    @Schema(description = "类型 1护理记录 2病程记录")
    private Integer type;



}
